import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/get_friend_entity.dart';

GetFriendEntity $GetFriendEntityFromJson(Map<String, dynamic> json) {
	final GetFriendEntity getFriendEntity = GetFriendEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		getFriendEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		getFriendEntity.code = code;
	}
	final GetFriendData? data = jsonConvert.convert<GetFriendData>(json['data']);
	if (data != null) {
		getFriendEntity.data = data;
	}
	return getFriendEntity;
}

Map<String, dynamic> $GetFriendEntityToJson(GetFriendEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

GetFriendData $GetFriendDataFromJson(Map<String, dynamic> json) {
	final GetFriendData getFriendData = GetFriendData();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		getFriendData.id = id;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		getFriendData.sex = sex;
	}
	final String? location = jsonConvert.convert<String>(json['location']);
	if (location != null) {
		getFriendData.location = location;
	}
	final String? nickName = jsonConvert.convert<String>(json['nickName']);
	if (nickName != null) {
		getFriendData.nickName = nickName;
	}
	final String? userPic = jsonConvert.convert<String>(json['userPic']);
	if (userPic != null) {
		getFriendData.userPic = userPic;
	}
	final String? selfIntroduction = jsonConvert.convert<String>(json['selfIntroduction']);
	if (selfIntroduction != null) {
		getFriendData.selfIntroduction = selfIntroduction;
	}
	final String? ryUserId = jsonConvert.convert<String>(json['ryUserId']);
	if (ryUserId != null) {
		getFriendData.ryUserId = ryUserId;
	}
	final bool? isFriend = jsonConvert.convert<bool>(json['isFriend']);
	if (isFriend != null) {
		getFriendData.isFriend = isFriend;
	}
	return getFriendData;
}

Map<String, dynamic> $GetFriendDataToJson(GetFriendData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['sex'] = entity.sex;
	data['location'] = entity.location;
	data['nickName'] = entity.nickName;
	data['userPic'] = entity.userPic;
	data['selfIntroduction'] = entity.selfIntroduction;
	data['ryUserId'] = entity.ryUserId;
	data['isFriend'] = entity.isFriend;
	return data;
}